import yaml
def getyaml(file):
    with open(file,'r',encoding='utf-8') as e:
        return yaml.safe_load(e)